package cloud.xlh.my_system.controller;

import cloud.xlh.my_system.common.response.Response;
import cloud.xlh.my_system.pojo.DatabaseRequest;
import cloud.xlh.my_system.pojo.PageRequest;
import cloud.xlh.my_system.pojo.Project;
import cloud.xlh.my_system.service.GenTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : code-generator
 * @ Author: XuLeHuang
 * @ Date: 2022/6/20 15:35
 * @ Description:
 */
@Controller
@RequestMapping("/genTable")
public class GenTableController {
    @Autowired
    private GenTableService  genTableService;

    @RequestMapping("/QueryGenTableByCondition")
    @ResponseBody
    public Response<Map>  QueryGenTableByCondition(DatabaseRequest databaseRequest) {
        return genTableService.QueryGenTableByCondition(databaseRequest);
    }
}
